let UsvStates = new Map([
    [0, "离线"], 
    [1, "空闲"],
    [2, "手动巡航"],
    [3, "自动巡航"],
    [4, "返航"],
    [5, "锁定"]
]);

let PlanStates = new Map([
    [0, "已创建"], 
    [1, "就绪"],
    [2, "巡航中"],
    [3, "返航中"],
    [4, "已完成"]
]);

let ReturnModes = new Map([
    [1, "直线返航"], 
    [2, "原路返航"],
]);

export default {
    usvState: val => UsvStates.get(val),
    planState: val => PlanStates.get(val),
    returnMode: val => ReturnModes.get(val)
};